<?php
/*************************************************************************
Class Pick_Core_UserInfo
----------------------------------------------------------------
PICKCOCMS Project
Company: PICKCO  Co., Ltd Author: Hai Nam
 
Email: admin@pick.vn
Last updated: 29/09/2009
**************************************************************************/
class Pick_Core_UserInfo extends Pick_Core_ObjectInfo{

	function Pick_Core_UserInfo($arrayField = array()){
        parent::Pick_Core_ObjectInfo();
		$this->setArrayField($arrayField);
	}
	function checkPermissionModule($codemodule){
		$arraymodule = unserialize($this->getField('permissions'));		
		if(in_array($codemodule, $arraymodule)) return true;
		return false;
	}
	function getFullNameUser(){
		$fullName = $this->getField("firstname")." ".$this->getField("lastname");	
		return $fullName;
	}	
}
?>